home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #3 / amigamamagazinepolishissue1998.iso / maksiu / lists / amoslist-0996.lzh / AMOSLIST / 000110_amos-request@svcs1.digex.net_Sun Sep 29 16:27:43 1996.msg < prev    next >
Internet Message Format  |  1996-10-01  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.7.6/8.7.3) with ESMTP id QAA07217 for <mcox@access.digex.net>; Sun, 29 Sep 1996 16:27:29 -0400 (EDT)
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.7.6/8.7.3) id OAA05243 for amos-out; Sun, 29 Sep 1996 14:24:26 -0400 (EDT)
  3. Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3]) by svcs1.digex.net (8.7.6/8.7.3) with ESMTP id OAA05240 for <amos-list@svcs1.digex.net>; Sun, 29 Sep 1996 14:24:26 -0400 (EDT)
  4. Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) by mail2.access.digex.net (8.7.6/8.7.3) with SMTP id OAA01152 for <amos-list@access.digex.net>; Sun, 29 Sep 1996 14:24:25 -0400 (EDT)
  5. Received: from post.demon.co.uk ([(null)]) by relay-4.mail.demon.net  id ah27729;
  6.           29 Sep 96 18:09 GMT
  7. Received: from westmead.demon.co.uk ([158.152.130.21]) by relay-3.mail.demon.net
  8.            id aa01593; 29 Sep 96 19:08 BST
  9. From: Mark Carter <Mark@westmead.demon.co.uk>
  10. Organization: None Whatsoever
  11. To: amos-list@access.digex.net
  12. Date: Sun, 29 Sep 1996 19:07:31 +0000
  13. Subject: Re: Scrolling problems...
  14. Reply-to: mark@westmead.demon.co.uk
  15. Priority: normal
  16. X-mailer: Pegasus Mail for Windows (v2.20)
  17. Message-ID: <844020484.1593.0@westmead.demon.co.uk>
  18. Status: O
  19. X-Status: 
  20.  
  21. Hi,
  22.  
  23. > > I've got a lowres 640x480 screen which I scroll in a 320x190 display, 
  24. > > about 15 bobs including a ball, which the scrolling follows. All of 
  25. > > this (including scrolling) was controlled by AMal proggies.
  26. > > To begin with I was running the game at 25Hz using the following 
  27. > > method:
  28. > > [snip]
  29. > > This however, is very jerky.  So I then decided to make the ball move 
  30. > > at 50Hz by taking it out of the Amal bank and putting the new Amos 
  31. > > code just BEFORE each Vbl.
  32. > > 
  33. > > This was even worse!  However, when I ran the program by freezing the 
  34. > > scrolling amal program, all was ok.  I think the problem is that 
  35. > > while EVERYTHING visible is updated in one smooth burst during the 
  36. > > Bob Update command, the scrolling is done during the Synchro command. 
  37. > > So, in effect, there are 2 changes to-the-eye every Vbl.
  38. > Probably the only way to get smooth scrolling and smooth ball movement is
  39. > to use a sprite for the ball (so you can update it separately from the
  40. > bobs) and maybe use Amal or an Every 1 Proc to control it.
  41.  
  42. Unfortunately, the ball needs to go behind bobs now and again.
  43.  
  44. Anyway, I've come up with an ok solution. It goes something like:
  45.  
  46. Synchro Off: Bob Update Off:Autoback 1
  47. [Amos Code]
  48. Wait Vbl:Synchro (this includes a scrolling channel)
  49. bob clear
  50. bob draw
  51. wait vbl:screen swap
  52.  
  53. So this goes along at 25Hz, but now I dont get the jittery ball 
  54. movement (you know like where the ball "appears" to jump back on 
  55. itself)
  56.  
  57. Before, it was something like:
  58.  
  59. Synchro
  60. wait vbl:Bob update
  61. wait vbl
  62.  
  63. but I think the "Bob Update" command was not always completed  before 
  64. the screen started to redraw again...
  65.  
  66. Hope this all makes sense!
  67.  
  68. Cheers,
  69.         Mark
  70.  
  71. Mailto:mark@westmead.demon.co.uk, exet0007@sable.ox.ac.uk
  72. URL:   http://www.westmead.demon.co.uk/mark/index.htm